package function

import(
	"crypto/md5"
	"my_server_test/config"
	"encoding/hex"
)

func Md5Encryption(val string) string{
	md5_string := md5.New()
	val_cont :=val+config.AppServerSet.AppKey
	md5_string.Write([]byte(val_cont))
	return hex.EncodeToString(md5_string.Sum(nil))
}